#ifndef _LCD_GUI_H_
#define _LCD_GUI_H_
#include "stdint.h"
#include "stdbool.h"


extern void lcd_draw_point(unsigned short x, unsigned short y, unsigned short color);   //画点
extern void lcd_draw_circle(unsigned short x0,unsigned short y0,unsigned short r,unsigned short color);  //画空心圆
extern void lcd_draw_fill_circle(unsigned short x0,unsigned short y0,unsigned short r,unsigned short color);   // 画实心圆
extern void lcd_draw_line(unsigned short x1, unsigned short y1, unsigned short x2, unsigned short y2,unsigned short color);// 画线(单像素)
extern void lcd_draw_angle_line(unsigned short x,unsigned short y,unsigned short angle,unsigned short r,unsigned short color);// 画角度线
extern void lcd_draw_bold_line0(unsigned short x1, unsigned short y1, unsigned short x2, unsigned short y2,unsigned char size,unsigned short color);  //画一条粗线
extern void lcd_draw_bold_line1(unsigned short x1, unsigned short y1, unsigned short x2, unsigned short y2,unsigned char size,unsigned short color);
extern void lcd_draw_triangel(unsigned short x0,unsigned short y0,unsigned short x1,unsigned short y1,unsigned short x2,unsigned short y2,unsigned short color);// 画三角形
extern void lcd_draw_fill_triangel(unsigned short x0,unsigned short y0,unsigned short x1,unsigned short y1,unsigned short x2,unsigned short y2,unsigned short color);// 画实心三角形
extern void lcd_draw_rectangle(unsigned short x1, unsigned short y1, unsigned short x2, unsigned short y2,unsigned short color);// 画矩形
extern void lcd_draw_fill_rectangle(unsigned short sx,unsigned short sy,unsigned short ex,unsigned short ey,unsigned short color);// 实心矩形
extern void lcd_show_char(unsigned short x,unsigned short y,unsigned short bcolor,unsigned short fcolor, unsigned char ch,unsigned char size,unsigned char mode);  // 显示单个字符
extern void lcd_show_string(unsigned short x,unsigned short y,unsigned short bcolor,unsigned short fcolor,unsigned char size,char *p,unsigned char mode);// 显示字符串
extern void lcd_show_num(unsigned short x,unsigned short y,unsigned short bcolor,unsigned short fcolor,unsigned int num,unsigned char len,unsigned char size);// 显示数字
extern void lcd_draw_bmp16(unsigned short x,unsigned short y,const unsigned char *p);//显示40*40 QQ图片
extern unsigned int lcd_pow(unsigned char m,unsigned char n);
extern void lcd_swap(unsigned short *a, unsigned short *b);

#endif
